// MapMakerDlg.h : header file
//

#if !defined(AFX_MAPMAKERDLG_H__C71FF806_B3F3_46E5_911A_9C1E25E3E105__INCLUDED_)
#define AFX_MAPMAKERDLG_H__C71FF806_B3F3_46E5_911A_9C1E25E3E105__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <vector>
using namespace std;
/////////////////////////////////////////////////////////////////////////////
// CMapMakerDlg dialog

class CMapMakerDlg : public CDialog
{
// Construction
public:
	CMapMakerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMapMakerDlg)
	enum { IDD = IDD_MAPMAKER_DIALOG };
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMapMakerDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMapMakerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnNew();
	afx_msg void OnOpen();
	afx_msg void OnSave();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnBitmap1();
	afx_msg void OnBitmap2();
	afx_msg void OnBitmap3();
	afx_msg void OnBitmap4();
	afx_msg void OnBitmap5();
	afx_msg void OnBitmap6();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnClear();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	void DrawPointer(CDC *pDC, int row, int col,bool bFill);
	void GetCellRect(int row, int col, LPRECT pRect);
	void DrawWithSpecificMap(int nIndex);
	void DrawMapFromMapFile(CString strFileName);
private:
	CFont m_font;
	int m_nCurrentCol;
	int m_nCurrentRow;
	int m_nCellHeight;
	int m_nCellWidth;
	CSize m_sizeMap;
	CRect m_rtEdit;
	CBitmap m_bmCur;
	CRect m_rtCur;
	int	m_nCurSel;
	vector<vector<int> > m_arrMap;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAPMAKERDLG_H__C71FF806_B3F3_46E5_911A_9C1E25E3E105__INCLUDED_)
